home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
utilfile
/
5dos4
/
dos-50.doc
< prev
next >
Wrap
Text File
|
1992-06-23
|
22KB
|
807 lines
<--- The KAT Directory 2.1 --->
A replacement for DOS 5.0 Directory Utility
for people who can't afford DOS 5.0
DOS 5.0 was released June 11, 1991, and many computer users have run
out to get it. Unfortunately, I can't afford it ! (well, I probably
can, but it takes too much time to install... etc)
For us too lazy, or too poor to purchase the $70.00 update, I have
created a replacement:
THE KAT DIRECTORY 2.2
========================================================================
Usage: CADIR [switches/directory] [switches]
CADIR ? shows help screen
<< a rather *nice* help screen, if I may
say so myself >>
┌─────────────────────────────────────────────────────────┐
│ DIRECTORY OPTIONS │
└─────────────────────────────────────────────────────────┘
/S show subdirectories + current directory
/R start display in root directory
┌──────────────────────────────────────────────────────────┐
│ PRINTING FORMAT │
└──────────────────────────────────────────────────────────┘
/W shows a wide directory
/P stops display after every page
/$ show files with attribute settings
/I3 show in 3 columns + sizes
/I6 show in 6 columns (extremely packed listing!)
/FS "Fat Sizes" shows larger display with sizes (size is displayed
in Kilobytes rather than bytes
/FT "Fat Times" shows larger display with times
┌──────────────────────────────────────────────────────────┐
│ SORTING SWITCHES │
└──────────────────────────────────────────────────────────┘
/ON sort alphabetically (A - Z)
/O-N sort reverse alphabetical (Z - A)
/OE sort by extension (A - Z)
/O-E sort by reverse extension (Z - A)
/OS sort by size (smallest-largest)
/O-S sort by reverse size (largest-smallest)
/OD sort by dates
/O-D sort by reverse dates
/OT sort by times
/O-T sort by reverse times
/OG display subdirs then files
┌──────────────────────────────────────────────────────────┐
│ ATTRIBUTE SWITCHES │
└──────────────────────────────────────────────────────────┘
/A+ display archive + system + read-only + hidden files
/AD display only sub-directories
/AH display only hidden files
/AS display only system files
/AR display only read-only files
/AA display only files with the archive bit set
┌─────────────────────────────────────────────────────────┐
│ SHOW SPECIAL FILES │
└─────────────────────────────────────────────────────────┘
/HOG show five largest files (that hog up most space)
/EXO display only executable files (*.COM & *.EXE)
/T display only files dated today
┌─────────────────────────────────────────────────────────┐
│ OTHER SWITCHES │
└─────────────────────────────────────────────────────────┘
/#REV reverse filenames+extensions (just for fun!)
/ENG capitalize first letter of name only (English style)
/CLEAR clear screen before display
/*SAVED save options to configuration file (see explanation below)
/%C setup color options (see explanation below)
/@file.ext search drive for filename (or wildcard)
/*PA show all paths on current disk
/! display EXTRA memory + allocation data
^
│
│
╓────────────────┴─────────────────────────────╖
║ EXTRA MEMORY & ALLOCATION DATA ║
║ ║
║ The following items are displayed: ║
║ ║
║ 1) Free Memory on Current Drive (in bytes) ║
║ 2) Number of Clusters on Drive ║
║ 3) Bytes Per Cluster ║
║ 4) Sectors per Cluster ║
║ 5) Ram Size (in bytes) ║
║ 6) Process ID ║
║ 7) Space in Far Heap ║
║ 8) Program Offset ║
║ 9) FAT ID Byte ║
║ 10) Disk Transfer Address ║
║ 11) Current Registers: CS, DS, ES & SS ║
║ 12) Current Date and Time ║
║ ║
╙──────────────────────────────────────────────╜
=========================================================================
Switches may be combined:
CADIR \MENU /AH/OE displays all hidden files in the \MENU directory,
sorting by extension
CADIR /AS displays all system files in current directory
CADIR /S displays all files in current directory + files
in all subdirectories
CADIR /P displays files in current directory, pausing after
each screenful
CADIR \BIN\*.C displays all files with extension "C" in \BIN
directory
CADIR *.C displays all files with extension "C" in current
directory
CADIR \MENU\*.EXE /T/! displays all executable files in the \MENU
directory that are dated today
Once finished, shows extended information
CADIR *.DOC /#REV /$ /OT
show doc files reversed-style, with attribute settings
displayed, and sorted by time
=========================================================================
====== WHAT ARE "SAVED OPTIONS" ?? ====================================
=========================================================================
You are allowed to save your options in a configuration file located
in the root directory. It is very small (usually 50 bytes), and combined
with DOS' "Path", can make you directory fast and efficient.
TO USE:
1) Put CADIR.EXE in the first directory of your "Path".
Eg: If your path is C:\DOS;D:\FILES;D:\LOTUS;D:\WINDOWS, you would
place the program in the DOS directory.
2) Type in your favorite options after CADIR.EXE, then include /*SAVE
as the last option.
Eg: CADIR /ENG /! /I6 /OS /*SAVE
3) From that point, every time you just type: CADIR , your options become
the default. No need to ever type in all those options again.
4) To override your new default options, just type in some different
switches !
Eg: to override the above default, and display a "WIDE" directory with
sorting by dates, type:
CADIR /W /OD
Your default options are still in effect, but you are just overriding
them temporarily.
NOTE: The "default" option is great! You can type: CADIR *.C and your
defaults pick up, causing your display to be /ENG /! /I6 /OS.
But when you type: CADIR /W, you have temporarily caused a wide
display, and your options are not in effect.
This saves a LOT OF TYPING ! & allows a very advanced interface.
5) To re-set the default options, just type in your new options, and
include /*SAVE as the final switch.
Eg: CADIR /W /A+ /O-D /$ /CLEAR /*SAVE
^
│
{note "save" is the last switch}─────┘
===========================================================================
============ COLOR SETUP ==================================================
===========================================================================
Once into the "Setup" screen, you are presented with the following
menu:
[TextColors]
0. BLACK
1. BLUE 2. GREEN 3. CYAN 4. RED 5. MAGENTA
6. BROWN 7. LIGHTGRAY 8. DARKGRAY 9. LIGHTBLUE 10. LIGHTGREEN
11. LIGHTCYAN 12. LIGHTRED 13. L.MAGENTA 14. YELLOW 15. WHITE
[a].DOC 15 [b].TXT 15 [c].LOG 15 [d].HLP 15
[e].COM 15 [f].EXE 15 [g].SYS 15 [h].BAT 15
[i].ARC 15 [j].ZIP 15 [k].ZOO 15 [l].LZH 15
[m].GIF 15 [n].A86 15 [o].ASM 15 [p].C 15
[q].PAS 15 [r].BAS 15 [s].OBJ 15 [t].CPP 15
[u].H 15 [v].MAP 15 [w].CFG 15 [x].TMP 15
[y].MSG 15 [z] Default Color: 15
Press Letter/Num or [ESC] exit+save:
At the above prompt, make SURE that 'Capslock' is OFF, and press the letter
or number to the left of the your choice. Here is an explanation of the
above choices:
[a].DOC 15
│ │ │
│ │ │
│ │ Color of files with extension
│ │
│ File extension
│
Letter to press to change option
So pressing "a" will bring a prompt--> "Color: ". You then look to the
top of the screen at the colors. If you want all files with the .DOC
extension to be RED, you would enter "4". The screen then updates itself,
and instead of:
[a].DOC 15
we have [a].DOC 4
The remainder of the extensions are obvious: .CFG, .OBJ, .TMP, .LOG .. etc.
Once you are satisfied with your color choices, press [ESC] to save
your options and exit.
NOTE: Your colors are saved in a file called "COLORS.CFG" in the root
directory of the current disk drive.
==========================================================================
=========== HUNTING FILES ================================================
==========================================================================
To search for a file (or wildcard), specify it after the "/@" in your
options.
Eg: CADIR /@LIST.COM searches drive for LIST.COM
CADIR /@.DOC searches for all .DOC files
CADIR /@CADIR. searches for all CADIR files
NOTE: The lack of "*". Searchstrings are specified by "partnames" rather
than with question marks & astericks.
So -> .DOC is equivalent to *.DOC
.COM is equivalent to *.COM
BACK is equivalent to *BACK*
FILE. is equivalent to FILE.*
┌───────────┐
==│ EXAMPLES: │=============================================================
└───────────┘
The following are visual examples of the switches above. Our directory
we will be looking at is:
. <DIR> 07-10-91 6:06p
.. <DIR> 07-10-91 6:06p
E88 PAT 20705 02-20-88 12:34a
2SEEK DOC 12983 07-04-91 5:30p
TC EXE 876480 05-04-90 1:00a
DOS-50 DOC 13644 07-10-91 6:05p
BILLS EXE 8715 06-15-91 8:22p
PCPLUS KEY 500 04-20-91 12:38a
STUFF 0 07-10-91 6:09p
9 File(s) 17000448 bytes free
┌─────────────────────────────────────┐
│ CADIR /W │
└─────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT 2SEEK .DOC TC .EXE DOS-50 .DOC BILLS .EXE
PCPLUS .KEY STUFF
7 Total Files taking up 933537 bytes
┌────────────────────────────────────┐
│ CADIR /I3 │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT 20705 2SEEK .DOC 12983 TC .EXE 876480
DOS-50 .DOC 13644 BILLS .EXE 8715 PCPLUS .KEY 500
STUFF 510
7 Total Files taking up 933787 bytes
┌────────────────────────────────────┐
│ CADIR /I6 │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT▌2SEEK .DOC▌TC .EXE▌DOS-50 .DOC▌BILLS .EXE▌PCPLUS .KEY▌
STUFF ▌
7 Total Files taking up 934155 bytes
┌────────────────────────────────────┐
│ CADIR /$ │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT ║ A║ 2SEEK .DOC ║ A║ TC .EXE ║R SA║
DOS-50 .DOC ║ S ║ BILLS .EXE ║ ║ PCPLUS .KEY ║ A║
STUFF ║ A║
7 Total Files taking up 934416 bytes
┌────────────────────────────────────┐
│ CADIR /O-S │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
TC.EXE 876480 Fri May 04 01:00:00 1990
E88.PAT 20705 Sat Feb 20 00:34:24 1988
DOS-50.DOC 13644 Wed Jul 10 18:05:38 1991
2SEEK.DOC 12983 Thu Jul 04 17:30:08 1991
BILLS.EXE 8715 Sat Jun 15 20:22:28 1991
STUFF 510 Wed Jul 10 18:09:30 1991
PCPLUS.KEY 500 Sat Apr 20 00:38:08 1991
7 Total Files taking up 934837 bytes
┌────────────────────────────────────┐
│ CADIR /ENG │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88.pat 20705 Sat Feb 20 00:34:24 1988
2seek.doc 12983 Thu Jul 04 17:30:08 1991
Tc.exe 876480 Fri May 04 01:00:00 1990
Dos-50.doc 13644 Wed Jul 10 18:05:38 1991
Bills.exe 8715 Sat Jun 15 20:22:28 1991
Pcplus.key 500 Sat Apr 20 00:38:08 1991
Stuff 510 Wed Jul 10 18:09:30 1991
7 Total Files taking up 936620 bytes
┌────────────────────────────────────┐
│ CADIR /INFO │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88.PAT 20705 Sat Feb 20 00:34:24 1988
2SEEK.DOC 12983 Thu Jul 04 17:30:08 1991
TC.EXE 876480 Fri May 04 01:00:00 1990
DOS-50.DOC 13644 Wed Jul 10 18:05:38 1991
BILLS.EXE 8715 Sat Jun 15 20:22:28 1991
PCPLUS.KEY 500 Sat Apr 20 00:38:08 1991
STUFF 510 Wed Jul 10 18:09:30 1991
7 Total Files taking up 937603 bytes
[info]
Free Memory on Drive C: is 16984064
Number of Clusters: 21722
Bytes Per Cluster: 512
Sectors per Cluster: 4
Ram Size: 640K
Process ID: 4241
Space in Far Heap: 281360 bytes
Program Offset: 1E
FAT ID Byte: F8
Disk Transfer Address: 4B4E:FE86
CS: 4251 DS: 4B4E ES: 4B4E SS: 4B4E
It is 10:54:21 AM (EST) on Monday January 12 1991
┌────────────────────────────────────┐
│ CADIR /*PA │
└────────────────────────────────────┘
** SHOWING ALL PATHS **
C:\PCSHELL
C:\DYNAMIX
C:\DYNAMIX\BARON
C:\DYNAMIX\BARON\TAPES
C:\DOWNLOAD
C:\BACKUP
C:\ARJIT
C:\PSLIBRAR
C:\SALES
C:\TEMP
C:\ERASE
C:\STEREO
┌────────────────────────────────────┐
│ CADIR /FS │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT 20 02/20/88▌2SEEK .DOC 12 07/04/91▌TC .EXE 876 05/04/90▌
DOS-50 .DOC 13 07/10/91▌BILLS .EXE 8 06/15/91▌PCPLUS .KEY 1 04/20/91▌
STUFF 1 07/10/91▌
7 Total Files taking up 939970 bytes
^
│
│
│
│
{NOTE: sizes are in Kilobytes rather than bytes}─────┘
┌────────────────────────────────────┐
│ CADIR /FT │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
E88 .PAT 00:34:12a ▌2SEEK .DOC 05:30:04p ▌TC .EXE 01:00:00a ▌
DOS-50 .DOC 06:05:19p ▌BILLS .EXE 08:22:14p ▌PCPLUS .KEY 00:38:04a ▌
STUFF 06:09:15p ▌
7 Total Files taking up 940551 bytes
┌────────────────────────────────────┐
│ CADIR /EXO │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
TC.EXE 876480 Fri May 04 01:00:00 1990
BILLS.EXE 8715 Sat Jun 15 20:22:28 1991
┌────────────────────────────────────┐
│ CADIR /HOG │
└────────────────────────────────────┘
KAT-DIRECTORY Volume Dave Smi.th
DIRECTORY --> C:\ERASE
Hogger-> TC.EXE 876480
Hogger-> E88.PAT 20705
Hogger-> DOS-50.DOC 13644
Hogger-> 2SEEK.DOC 12983
Hogger-> BILLS.EXE 8715
=========================================================================
┌────────────────┐
│ ERROR MESSAGES:│
└────────────────┘
<Where were you last night until 4:00 am ?>
<When's dinner gonna be ready?>
<Somebody really messed up your face>
<My grandmother's sick. I can't come to work today>
<I can't go out with you tonight, I have to wash my hair>
<I really like you.... but .. I just wanna be friends>
<You can't find a date, huh? Who me? No, I uh.. I uhh... my mother's
flying in tonight, and uh.. I have to pick her up at the airport>
<You are married? Oh, I'm sorry>
<I only had a couple of beers, officer>
=========================================================================
TO MAXIMIZE YOUR USE OF THE KAT DIRECTORY --->
a) Rename the program to "C.EXE".
b) Place it in the first directory of your path.
c) If you have a RAM DISK, put the program into it.
d) Save your favorite options using the /*SAVE switch.
e) If you use DOS 4.0+, use the FASTOPEN program.
f) If you use DOS 5.0, load the program into high memory using
the LOADHIGH program.
e) If you use DOS 5.0, and have a Disk Cache, load this program high,
and load your ram disk into a lower section of memory.
┌─────────────────────────────────────────────────────────────────────┐
│ ==================================== │
│ ========== KNOWN BUG ============= │
│ ==================================== │
│ │
│ I don't know whether it's my Ram Disk, my Disk Cache, my keyboard │
│ accelerator, or a real bug in the program, but I've noticed the │
│ following: │
│ │
│ Control characters occassionally show up in the listing of files.│
│ │
│ EG: Instead of: LIST.COM 21427 2/17/91 │
│ │
│ it becomes: LISTZ▒ │
│ │
│ It is extremely uncommon, and only occurs once per every 10 usages │
│ on my system. I have gone through the code extensively, and have │
│ yet to find where the problem is located. │
│ │
│ │
└─────────────────────────────────────────────────────────────────────┘
Version History:
1.0 Very basic replacement for the 5.0 directory function.
Included all the switches.
1.1 Added 14 functions.
1.2 Added scrolling help screen.
1.6 Included customized functions, now saveable to a file.
1.9 Added another 10 functions.
2.0 Added extra information plus color customization.
2.2 Minor update.. added more to help screen plus
made default colors more exciting. (before, the
defaults were all white lettering)
DISCLAIMER OF WARRANTY
THIS SOFTWARE AND MANUAL ARE SOLD "AS IS" AND WITHOUT WARRANTIES
AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER WARRANTIES
WHETHER EXPRESSED OR IMPLIED. BECAUSE OF THE VARIOUS HARDWARE
AND SOFTWARE ENVIRONMENTS INTO WHICH THIS PROGRAM MAY BE PUT, NO
WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED. THIS PROGRAM
HAS BEEN THOROUGHLY TESTED BUT I CAN NOT GUARANTEE THAT THERE ARE
NO PROBLEMS WITH IT. THE USER MUST ASSUME THE ENTIRE RISK OF
USING THE PROGRAM. ANY LIABILITY OF THE SELLER WILL BE LIMITED
EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE.